//1.导入包 2.实例化 3.配置路由 4.导出路由
const Router= require('koa-router')

const {register,login} =require('../../controller/user')


const router=new Router({ prefix:'/users' })

//注册接口
router.post('/register',register)

//登录接口
router.post('/login',login)

module.exports=router